package felix.multilauncher.Bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by huangmf on 10/9/2017.
 */

public class ContactBean implements Parcelable {
    private int mContactId;
    private String mNickName;
    private String mPhone;
    private long mPhotoId;

    public int getContactId() {
        return mContactId;
    }

    public void setContactId(int contactId) {
        mContactId = contactId;
    }

    public String getNickName() {
        return mNickName;
    }

    public void setNickName(String nickName) {
        mNickName = nickName;
    }

    public String getPhone() {
        return mPhone;
    }

    public void setPhone(String phone) {
        mPhone = phone;
    }

    public long getPhotoId() {
        return mPhotoId;
    }

    public void setPhotoId(long photoId) {
        mPhotoId = photoId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.mContactId);
        dest.writeString(this.mNickName);
        dest.writeString(this.mPhone);
        dest.writeLong(this.mPhotoId);
    }

    public ContactBean() {
    }

    protected ContactBean(Parcel in) {
        this.mContactId = in.readInt();
        this.mNickName = in.readString();
        this.mPhone = in.readString();
        this.mPhotoId = in.readLong();
    }

    public static final Parcelable.Creator<ContactBean> CREATOR = new Parcelable.Creator<ContactBean>() {
        @Override
        public ContactBean createFromParcel(Parcel source) {
            return new ContactBean(source);
        }

        @Override
        public ContactBean[] newArray(int size) {
            return new ContactBean[size];
        }
    };
}
